<!-- 浏览记录 -->
<template>
	<view class="oooo">
		<!-- <view
			@click="fenxiang"
			style="position: relative;  width: 80%;height: 80rpx;background-color: #2B85E4;position: fixed;bottom: 30rpx;margin-left: 10%;border-radius: 40rpx;line-height: 80rpx;text-align: center;font-size: 40rpx;color: #FFFFFF;font-weight: 800;"
		>
			邀请好友成为团长
			<button class="ddd" open-type="share"></button>
		</view> -->
	</view>
</template>

<script>
export default {
	data() {
		return {
			id: '',
		};
	},
	onLoad() {
		var userInfo = uni.getStorageSync('userInfo');
		this.id = userInfo.id;
	},
	onShareAppMessage(res) {
		//发送给朋友
		return {
			//title: '考拉妈妈邀请你赚钱, 邀请码:' + this.id, // 默认是小程序的名称(可以写slogan等)
			path: '/pages/index/index?share_id=' + this.id, // 默认是当前页面，必须是以‘/’开头的完整路径
			//imageUrl: 'https://s3.ax1x.com/2021/01/04/sPoBfH.jpg', //自定义图片路径，可以是本地文件路径、代码包文件路径或者网络图片路径，支持PNG及JPG，不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
			success: function(res) {
				// 转发成功之后的回调
				if (res.errMsg == 'shareAppMessage:ok') {
				}
			},
		};
	},
	methods: {},
};
</script>

<style lang="scss" scoped>
.oooo {
	width: 100vw;
	height: 1000rpx;
	background: url(https://zmk-alioss.oss-cn-beijing.aliyuncs.com/shanyang/webp.webp)
		no-repeat center;
}
.ddd {
	position: absolute;
	top: 0;
	left: 0;
	width: 80vw;
	height: 100rpx;
	opacity: 0;
	//background-color: red;
}
// .topp {
// 	width: 100vw;
// 	height: 100vh;
// }
</style>
